package com.ljf.spring.captcha;

import com.ljf.captcha.CaptchaManager;
import com.ljf.captcha.config.CaptchaConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;

/**
 * 说明：sso注入
 *
 * @Auther: lijinfeng
 * @Date: 2024/4/24
 */
@ConditionalOnClass(CaptchaManager.class)
public class CaptchaBeanInject {

    /**
     * 注入配置Bean
     */
    @Autowired(required = false)
    public void setCaptchaConfig(CaptchaConfig captchaConfig) {
        CaptchaManager.setCaptchaConfig(captchaConfig);
    }


}
